set(LLVM_TARGET_DEFINITIONS Options.td)
set(BS_FEAT_LIST)
if(BISHENGIR_PUBLISH)
  list(APPEND BS_FEAT_LIST "-DBISHENGIR_PUBLISH")
endif()
bishengir_options_tablegen(HIVMCompileOptions.cpp.inc -gen-compile-options ${BS_FEAT_LIST})
bishengir_options_tablegen(HIVMCompileConfigs.cpp.inc -gen-compile-configs ${BS_FEAT_LIST})
bishengir_options_tablegen(HIVMPassPipelineOptions.cpp.inc -gen-pass-pipeline-options ${BS_FEAT_LIST})
bishengir_options_tablegen(HIVMConfigUtils.cpp.inc -gen-configs-and-options-conversion ${BS_FEAT_LIST})
add_public_tablegen_target(BiShengIRHIVMOptionsIncGen)
add_dependencies(mlir-headers BiShengIRHIVMOptionsIncGen)
